package info.touret.winecellar.servlet;

import info.touret.winecellar.bottle.server.domain.Bottle;
import info.touret.winecellar.bottle.server.domain.Tag;
import info.touret.winecellar.bottle.server.domain.Tasting;
import info.touret.winecellar.producer.server.domain.Producer;
import info.touret.winecellar.userinfo.server.domain.UserInfo;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import com.googlecode.objectify.ObjectifyService;

public class InitServlet extends HttpServlet {
	private static final long serialVersionUID = -2427501783654408082L;

	static {
		ObjectifyService.factory().register(Tag.class);
		ObjectifyService.factory().register(Bottle.class);
		ObjectifyService.factory().register(Producer.class);
		ObjectifyService.factory().register(Tasting.class);
		ObjectifyService.factory().register(UserInfo.class);
	}

	@Override
	public void init(ServletConfig config) throws ServletException {
		super.init(config);
	}
}
